﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace QuickFramework.UICore.Controllers.ServerStatus
{
    /// <summary>
    /// 健康检查
    /// </summary>
    [Area("ServerStatus")]
    [AllowAnonymous]
    public class HealthController : Shared.Contracts.AuthorizeControllerBase
    {
        /// <summary>
        /// 健康检查
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public IActionResult Get()
        {
            return Ok(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.ffffff"));
        }
    }
}
